PUBLIC_PATH=../../../../public
LIB2_PATH=../../../../lib2-64
THIRD_PATH=../../../../third-64
DICT_PATH=$(LIB2_PATH)/dict
ODICT_PATH=$(PUBLIC_PATH)/odict
ULLIB_PATH=$(LIB2_PATH)/ullib

INCLUDEDIR= -I../mapinclude \
	-I../maplib/output/include \
	-I$(PUBLIC_PATH)/odict \
	-I$(DICT_PATH)/include \
	-I$(ODICT_PATH)/include \
	-I$(ULLIB_PATH)/include

LIBDIR= -L$(ODICT_PATH) -lodict \
	-L$(DICT_PATH)/lib -luldict \
	-L$(ULLIB_PATH)/lib/ -lullib \
	-L$(PUBLIC_PATH)/mcpack/output/lib -lmcpack \
	-L../maplib/output -lstllib \
	-lpthread -lcrypto -lz -lm

TARGET = odict_tool

CPPFLAGS = -g -W -Wall -pipe -DVERSION="\"mapdi 1.0.4.0\"" $(INCLUDEDIR)

OBJECTS = $(patsubst %.cpp,%.o, $(wildcard *.cpp))

all: $(TARGET) $(TARGET_TEST) output 

$(TARGET) : $(OBJECTS)
	$(CXX) -o $@ $^ $(INCLUDEDIR) $(LIBDIR)

.PHONY : output clean
clean :
	rm -f *.o $(TARGET)

